package com.qf.qfssm.web.master.service.impl;

import com.qf.qfssm.web.master.dao.UserDao;
import com.qf.qfssm.web.master.entity.User;
import com.qf.qfssm.web.master.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 刘欣
 * @createTime 2023/1/9 13:07
 * @description
 */
@Service

public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    @Transactional(propagation = Propagation.SUPPORTS)
    public User selectById(Integer id) {
        return userDao.selectById(id);
    }
}
